﻿<!--
Copyright (c) Microsoft Corporation. All rights reserved
-->

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title></title>
    <script src="/js/scenario5-advancedConsumableProduct.js"></script>
</head>

<body class="win-type-body">
    <div id="scenarioView">
        <div>
            <h2 id="sampleHeader" class="win-type-subheader">Description:</h2>
            <div id="scenarioDescription">
                Advanced consumable product
            </div>
        </div>
        <div id="scenarioContent">
            <p>
                This scenario shows two different consumable in-app products.
                Consumable products require both a purchase call and a fulfillment call per purchase.
                For educational purposes, this scenario separates the purchase from the fulfillment
                so that you can experiment with different situations.
                <strong>Do not</strong> require a user action for fulfillment in your app.
            </p>
            <p>
                <button id="showUnfulfilledConsumables" class="win-button">Show unfulfilled consumables</button>
            </p>

            <h2 id="product1Name"></h2>
            <p>
                Purchases: <span id="product1Purchases">0</span>.
                Fulfilled: <span id="product1Fulfilled">0</span>.
            </p>
            <p>
                <button id="buyProduct1" class="win-button">Buy it (<span id="product1Price">Unknown price</span>) - no fulfillment</button>
            </p>
            <p>
                <button id="fulfillProduct1" class="win-button">Fulfill purchase</button>
            </p>

            <h2 id="product2Name"></h2>
            <p>
                Purchases: <span id="product2Purchases">0</span>.
                Fulfilled: <span id="product2Fulfilled">0</span>.
            </p>
            <p>
                <button id="buyProduct2" class="win-button">Buy it (<span id="product2Price">Unknown price</span>) - no fulfillment</button>
            </p>
            <p>
                <button id="fulfillProduct2" class="win-button">Fulfill purchase</button>
            </p>
        </div>
    </div>
</body>

</html>